package com.ruoyi.subject.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 我的错题对象 t_qb_sub_wrong
 *
 * @author lzhj
 * @date 2021-01-27
 */
@Api("我的错题对象")
public class QbSubWrong extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    @Excel(name = "人员id")
    private Long userId;

    /**
     * 题目id
     */
    @ApiModelProperty(value = "题目id")
    @Excel(name = "题目id")
    private Long subjectId;

    /**
     * 题目
     */
    @ApiModelProperty(value = "题目信息", hidden = true)
    private QbSubject qbSubject;

    /**
     * 微信openID
     */
    @ApiModelProperty(value = "微信openID")
    private String openId;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public QbSubject getQbSubject() {
        return qbSubject;
    }

    public void setQbSubject(QbSubject qbSubject) {
        this.qbSubject = qbSubject;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("subjectId", getSubjectId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
